package com.flyox.game.militarychess.message;

import java.io.Serializable;

import com.flyox.game.militarychess.bean.ChessMan;
import com.flyox.game.militarychess.bean.Position;
import com.flyox.game.militarychess.bean.ChessSeat.SEAT_NAME;

public class Request implements Serializable{

	private static final long serialVersionUID = -4730742673621287359L;
	private int command;//命令
	private String cmd="";
	//for login
	private String playerName="";
	private String playerPass="";
	//for seat
	private int deskNum;//桌号
	private SEAT_NAME seatName;//座位号
	//个人布局
	private ChessMan[][] layout;
	//走棋
	private Position from;
	private Position to;
	//message
	private String message;
	
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Position getFrom() {
		return from;
	}
	public void setFrom(Position from) {
		this.from = from;
	}
	public Position getTo() {
		return to;
	}
	public void setTo(Position to) {
		this.to = to;
	}
	public String getCmd() {
		return cmd;
	}
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}
	public String getPlayerName() {
		return playerName;
	}
	public void setPlayerName(String playerName) {
		this.playerName = playerName;
	}
	public String getPlayerPass() {
		return playerPass;
	}
	public void setPlayerPass(String playerPass) {
		this.playerPass = playerPass;
	}
	public int getDeskNum() {
		return deskNum;
	}
	public void setDeskNum(int deskNum) {
		this.deskNum = deskNum;
	}
	public SEAT_NAME getSeatName() {
		return seatName;
	}
	public void setSeatName(SEAT_NAME seatName) {
		this.seatName = seatName;
	}
	public ChessMan[][] getLayout() {
		return layout;
	}
	public void setLayout(ChessMan[][] layout) {
		this.layout = layout;
	}
	public int getCommand() {
		return command;
	}
	public void setCommand(int command) {
		this.command = command;
	}

}
